package com.tt.controller;

import com.tt.entity.vo.AllProvincePieVO;
import com.tt.service.AllProvincePieService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

/**
 * <p>
 *
 * </p>
 *
 * @version 1.0
 * @auther sugarttt
 * @since 2022-11-10 10:31:26
 */
@RestController
public class AllProvincePieController {

    private final AllProvincePieService allProvincePieService;

    public AllProvincePieController(AllProvincePieService allProvincePieService) {
        this.allProvincePieService = allProvincePieService;
    }

    @GetMapping("/getAllProvincePie")
    public ArrayList<AllProvincePieVO> getAllProvincePie(String beginYear, String endYear){

        return allProvincePieService.getAllProvincePie(beginYear, endYear);
    }

}
